package com.ojoin.trade.supplyloan_core.web.service.impl;

import com.ojoin.trade.common.exception.BusinessException;
import com.ojoin.trade.common.web.dao.BaseDao;
import com.ojoin.trade.common.web.service.impl.BaseServiceImpl;
import com.ojoin.trade.supplyloan_core.web.dao.TbRedoDao;
import com.ojoin.trade.supplyloan_core.web.domain.TbRedo;
import com.ojoin.trade.supplyloan_core.web.service.TbRedoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 16-5-10
 * Time: 上午9:44
 * To change this template use File | Settings | File Templates.
 */
@Service
public class TbRedoServiceImpl extends BaseServiceImpl<TbRedo> implements TbRedoService {

    @Autowired
    private TbRedoDao dao;
    @Override
    protected BaseDao<TbRedo> getBaseDao() {
        return dao;  //To change body of implemented methods use File | Settings | File Templates.
    }

    @Override
    public TbRedo queryTbReDoByBusinessId(String orderid) throws BusinessException {
        return dao.queryTbReDoByBusinessId(orderid);  //To change body of implemented methods use File | Settings | File Templates.
    }

    @Override
    public void insertTbRedo(TbRedo vo) throws BusinessException {
        dao.insert(vo);
    }

    @Override
    public void updateTbRedo(String orderId) throws BusinessException {
        dao.updateTbRedo(orderId);
    }

}
